package com.ruoyi.report_hntjg.domain.bo;

import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 钢筋位置、保护层厚度试验检测报告-详情业务对象 report_hntjg_gjbhcbg_ba_detail
 *
 * @author tll
 * @date 2024-08-07
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ReportHntjgGjbhcbgBaDetailBo extends BaseEntity {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = { EditGroup.class })
    private Long detailId;

    /**
     * 主表id
     */
    @NotNull(message = "主表id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long excelId;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;

    /**
     * 构件号
     */
    @NotBlank(message = "构件号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String goujh;

    /**
     * 钢筋间距-设计值（mm）
     */
    @NotNull(message = "钢筋间距-设计值（mm）不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal gangjSjz;

    /**
     * 钢筋间距-实测点数
     */
    @NotNull(message = "钢筋间距-实测点数不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal gangjScds;

    /**
     * 钢筋间距-合格点数
     */
    @NotNull(message = "钢筋间距-合格点数不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal gangjHgds;

    /**
     * 钢筋间距-合格率（%）
     */
    @NotNull(message = "钢筋间距-合格率（%）不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal gangjHgl;

    /**
     * 保护层厚度-设计值（mm）
     */
    @NotNull(message = "保护层厚度-设计值（mm）不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal baohcSjz;

    /**
     * 保护层厚度-实测点数
     */
    @NotNull(message = "保护层厚度-实测点数不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal baohcScds;

    /**
     * 保护层厚度-合格点数
     */
    @NotNull(message = "保护层厚度-合格点数不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal baohcHgds;

    /**
     * 保护层厚度-合格率（%）
     */
    @NotNull(message = "保护层厚度-合格率（%）不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal baohcHgl;


}
